package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author long
 * @version v1.0
 * @date 2020/12/1 9:32
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ClueRuleDetaiDTO extends BaseDTO {

    /**
     * 规则枚举code  1.无新建跟进规则2.最大拥有线索数3.前负责人规则4.捞取频次限制5.自动分配规则
     */
    @NotNull(message = "{dto.msg.clueRuleDetail.ruleType.NotNull}")
    @Range(min = 1, max = 6, message = "{dto.msg.clueRuleDetail.ruleType.Range}")
    private Integer ruleType;
}
